package com.vast.admin.entity.dto;

import com.vast.admin.api.cietac.entity.Attachment;
import com.vast.admin.api.cietac.entity.Respondent;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class RespondentDTO {
    private String type;
    private String mobile;
    private String email;
    private String name;
    private String baseRegion;
    private String address;
    private String idNumber;
    private Attachment idNumberFront;
    private Attachment idNumberOpposite;
    private String gender;
    private String units;
    private String uniformSocialCreditCode;
    private String corporateName;
    private String corporateIdNumber;
    private Attachment corporateIdNumberFront;
    private Attachment corporateIdNumberOpposite;
    private Attachment businessLicensePhoto;
    private Attachment corporateCertification;
    private String companyContacts;


	public Respondent transfer() {
		Respondent respondent = new Respondent();
		BeanUtils.copyProperties(this, respondent);
		respondent.setBase_region(baseRegion);
		respondent.setBusiness_license_photo(businessLicensePhoto);
		respondent.setCompany_contacts(companyContacts);
		respondent.setCorporate_certification(corporateCertification);
		respondent.setCorporate_id_number(corporateIdNumber);
		respondent.setCorporate_id_number_front(corporateIdNumberFront);
		respondent.setCorporate_id_number_opposite(corporateIdNumberOpposite);
		respondent.setCorporate_name(corporateName);
		respondent.setId_number(idNumber);
		respondent.setId_number_front(idNumberFront);
		respondent.setId_number_opposite(idNumberOpposite);
		respondent.setUniform_social_credit_code(uniformSocialCreditCode);
		return respondent;
	}


}
